import requests

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3314.0 Safari/537.36 SE 2.X MetaSr 1.0',
    'Host': 'ny.meituan.com',
    'Referer': 'https://ny.meituan.com/meishi/',
    # 'Cookie': 'client-id=2e62ab24-31bd-4636-949b-aab738753124; uuid=faf2a3bd-f2c8-4393-a9b3-bca9afd2c89e; _lxsdk_cuid=170fe1a2686c8-096c45ede48a25-396f7f07-13c680-170fe1a2687c8; _lxsdk=170fe1a2686c8-096c45ede48a25-396f7f07-13c680-170fe1a2687c8; _lxsdk_s=170fe1a2689-b7c-66-1ee%7C%7C2',

    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-origin',
    'Accept': 'application/json',
    'Accept-Encoding': 'gzip, deflate, br',
    'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8',
    'Connection': 'keep-alive',
}
                                                                #这里地点城市                                                        这要更换                                                                                                                                         token要更换
url = 'https://ny.meituan.com/meishi/api/poi/getPoiList?cityName=上海&cateId=0&areaId=0&sort=&dinnerCountAttrId=&page=2&userId=&uuid=faf2a3bd-f2c8-4393-a9b3-bca9afd2c89e&platform=1&partner=126&originUrl=https%3A%2F%2Fny.meituan.com%2Fmeishi%2F&riskLevel=1&optimusCode=10&_token=eJxVjltvgkAQhf%2FLvkrcBdaukPQBRe3ipVhUhMYHRATUldsilab%2FvdvUPjSZ5Jw582VyPkFJD0CXEdIQksAtKoEO5C7qPgEJ8Epcen3clxVNlRHGEgj%2FZzLpS2Bfbkygv2OCJIK13U%2FwJvZ3GWMkibc76df2CdlJChbzw1CBgITzvNIhvN67LEp5HVy7Ycag8FWSQlEBCJStBCr0%2FNDgofxvn4vOgq3S%2BCpcZDWX0xpNm5OxTCKY0vIWKFnu0SX%2FsLyYmO2AW6fSsybr%2B2ibUVnN7LazGrofCdJWOCJKODnNDLW%2BUG1oPw18sxguodKxW2Jf2tnZPtLaGmr7UYj98dpLLh1aTxbOzIldNofnlQmzdF75C%2FeY5yQ3zrEP1cZ3fYw300VIe2MybXojphXjQ%2FEyGlSedeD5Ndawoby05qQJrHUKbz2HFnOuDIqgTRyF8OO4Ymxv8KKe7rPILQ3G7urrjW03jmc8g69vguiIxg%3D%3D'
response = requests.get(url,headers=headers)

print(response.text)
